From 3636b445b43bf3df0276e2681495207b13c61bfe Mon Sep 17 00:00:00 2001 From: robertl Date: Thu, 21 Jul 2011 21:49:51 +0000 Subject: [PATCH] Improve navicache smartnames. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4071 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/navicache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/navicache.c b/gpsbabel/navicache.c index 3d7936a94..dfc39e9c6 100644 --- a/gpsbabel/navicache.c +++ b/gpsbabel/navicache.c @@ -125,8 +125,8 @@ nav_start(void *data, const XML_Char *xml_el, const XML_Char **xml_attr) if (0 == strcmp(ap[0], "cache_id")) { int id; - wpt_tmp->shortname = xstrdup(ap[1]); id = atoi(ap[1]); + xasprintf(&wpt_tmp->shortname, "N%05X", id); xasprintf(&wpt_tmp->url, "%s%d", NC_URL, id); } else if (0 == strcmp(ap[0], "name")) { -- 2.30.2